#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
struct person{
	char name[20];
	int num;
};
char *Votename(struct person* member)
{
	srand((unsigned)time(NULL));
	int i;
	i=rand()%4;
	return member[i].name;
}
int main()
{
	struct person member[4]={"ZS",0,"LS",0,"ZW",0,"ZL",0};
	int i=0,j=0;
	
	for(i=0;i<100;i++)
	{
		char* tmp=Votename(member);
		for(j=0;j<4;j++)
		{
			if(strcmp(tmp,member[j].name)==0)
			{
				member[j].num++;
				break;
			}
		}
	}
	for(i=0;i<4;i++)
	{
		printf("%s\t%d\n",member[i].name,member[i].num);
	}
	return 0;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
}
